OstreeGpgVerifier: Take the signature as a GBytes
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 3 Mar 2015 19:15:27 +0000 (14:15 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 6 Mar 2015 13:22:44 +0000 (08:22 -0500)
commitc2b01adbf0335e9b13982ecfe1d0590d9e2855a9
treefd1c253b006e8438b91afb5f8b43ff149f663e39
parent70cabcea0a120715a07664b7376d9190f6404fa6
OstreeGpgVerifier: Take the signature as a GBytes

The signature data is in memory to begin with, so there's no need to
write it to disk only to immediately read it back.

Also, because the GPGME multi-keyring workaround is somewhat expensive
to setup and teardown, concatenate all signatures into a single GBytes
so _ostree_gpg_verifier_check_signature() is only called once.  We're
currently only looking for one valid signature anyway.
src/libostree/ostree-gpg-verifier.c
src/libostree/ostree-gpg-verifier.h
src/libostree/ostree-repo.c